package priv.yiyuan.example.design.pay.wechat;

/**
 * 旧版微信支付实现类
 */
public class LegacyWeChatPayImpl implements LegacyWeChatPay {

    @Override
    public boolean pay(double amount, String openId) {

        System.out.println(String.format("旧版微信支付: 金额 %.2f, OpenID %s\n", amount, openId));

        return true;
    }

    @Override
    public boolean cancelPayment(String paymentNo) {

        System.out.println(String.format("旧版微信支付取消: 支付单号 %s\n", paymentNo));

        return true;
    }
}
